/* 修改后的 adminPanel.css 文件 - 浅色蓝白配色版 */

@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&display=swap');

.admin-container {
	display: flex;
	height: 100vh;
	width: 100vw;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: auto;
	background: #f0f8ff;
	/* 改为浅蓝色背景 */
	gap: 0;
	align-items: stretch;
	max-width: 1920px;
	max-height: 900px;
	margin: 0 auto;
	left: 50%;
	transform: translateX(-50%);
}

.admin-container > * {
	margin: 0 !important;
	padding: 0 !important;
}

/* 确保侧边栏收缩时主内容区域紧贴 */
.admin-container.sidebar-collapsed {
	gap: 0 !important;
}

.admin-container.sidebar-collapsed .sidebar {
	margin-right: 0 !important;
	padding-right: 0 !important;
	border-right: none !important;
}

.admin-container.sidebar-collapsed .main-content {
	margin-left: 0 !important;
	padding-left: 0 !important;
}

.sidebar {
	width: 250px;
	background: #e3f2fd;
	/* 浅蓝色背景 */
	border-right: 1px solid #bbdefb;
	/* 添加右侧边框增强层次 */

	color: #1976d2;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	height: 100%;
	max-height: 900px;
	overflow: auto;
	border-top-right-radius: 24px;
	border-bottom-right-radius: 24px;
	box-shadow: 2px 0 16px 0 rgba(25, 118, 210, 0.12);
	/* 蓝色阴影 */
	z-index: 2;
	transition: width 0.3s ease;
	position: relative;
	margin-right: 0;
}

.sidebar.collapsed {
	width: 64px !important;
	margin-right: 0 !important;
	padding-right: 0 !important;
}

.sidebar-header {
	padding: 28px 20px 20px 20px;
	border-bottom: 1px solid #bbdefb;
	/* 蓝色分隔线 */
	background: #e1f5fe;
	/* 标题区浅蓝色 */
	flex-shrink: 0;
}

.sidebar-header h3 {
	margin: 0;
	color: #1565c0;
	/* font-family: 'ZCOOL KuaiLe', 'ZCOOL KuHei', 'Arial Black', 'Arial', sans-serif; */
	font-size: 1.6rem;
	letter-spacing: 2px;
	font-weight: bold;
	text-shadow: 0 2px 8px rgba(25, 118, 210, 0.18);
	/* 蓝色阴影 */
}

.header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.collapse-btn {
	background: none;
	border: none;
	color: #1976d2;
	cursor: pointer;
	padding: 8px;
	border-radius: 8px;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
}

.collapse-btn:hover {
	background: rgba(25, 118, 210, 0.1);
	transform: scale(1.1);
}

.collapse-icon {
	width: 20px;
	height: 20px;
	transition: transform 0.3s ease;
}

.sidebar.collapsed .collapse-icon {
	transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-header {
	padding: 20px 12px !important;
}

.sidebar.collapsed .sidebar-header h3 {
	display: none;
}

.sidebar-menu {
	flex: 1;
	border: none;
	background: transparent;
	overflow-y: auto;
	padding-top: 10px;
}

.sidebar-menu .el-menu-item {
	color: #1976d2;
	/* 蓝色文字 */
	border-radius: 10px;
	margin: 6px 12px;
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.sidebar-menu .el-menu-item:hover,
.sidebar-menu .el-menu-item.is-active {
	background: #bbdefb;
	/* 浅蓝色悬停背景 */
	color: #1565c0;
	/* 深蓝色文字 */
	font-weight: 500;
	/* 选中加粗 */
	box-shadow: 0 2px 8px rgba(25, 118, 210, 0.18);

}

.sidebar.collapsed .sidebar-menu {
	padding-top: 10px;
}

.sidebar.collapsed .sidebar-menu .el-menu-item {
	margin: 6px 8px !important;
	padding: 0 8px !important;
	justify-content: center;
}

.sidebar.collapsed .sidebar-menu .el-menu-item span {
	display: none;
}

.sidebar-footer {
	border-top: 1px solid #bbdefb;
	background: #e1f5fe;
	/* 底部区域浅蓝色 */
	flex-shrink: 0;
}

.sidebar-footer .el-button {
	
	 background: #2196f3; /* 蓝色按钮 */
	  color: #fff; /* 白色文字 */
	  border: 1px solid #1976d2; /* 添加边框 */
	
	width: 100%;
	border-radius: 5px;

	font-weight: bold;
	box-shadow: 0 2px 8px rgba(25, 118, 210, 0.12);
	/* 蓝色阴影 */
	border: none;
	transition: background 0.2s, box-shadow 0.2s;
}

.sidebar-footer .el-button:hover {
  background: #1976d2; /* 深蓝色悬停色 */
	/* 稍深的蓝色 */
	box-shadow: 0 4px 16px rgba(25, 118, 210, 0.18);
	/* 蓝色阴影 */
}

.sidebar.collapsed .sidebar-footer {
	padding: 16px 8px !important;
}

.collapsed-btn {
	width: 100% !important;
	padding: 8px !important;
	min-width: 48px !important;
	height: 48px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.logout-icon {
	width: 20px;
	height: 20px;
}

.main-content {
	flex: 1;
	background: #f0f8ff;
	/* 浅蓝色背景 */
	display: flex;
	flex-direction: column;
	height: 100%;
	max-height: 900px;
	overflow: auto;
	transition: all 0.3s ease;
	width: calc(100% - 250px);
	position: relative;
	margin-left: 0;
	padding-left: 0;
}

.admin-container.sidebar-collapsed .main-content {
	width: calc(100% - 64px);
	margin-left: 0 !important;
	padding-left: 0 !important;
}

.content-header {
	background: #fff;
	/* 白色背景 */
	padding: 28px 32px 18px 32px;
	border-bottom: 1px solid #e3f2fd;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
	box-shadow: 0 2px 12px 0 rgba(25, 118, 210, 0.08);
	/* 蓝色阴影 */
}

.content-header h2 {
	margin: 0;
	color: #1976d2;
	/* 蓝色文字 */
	font-size: 2rem;
	/* font-family: 'ZCOOL KuaiLe', 'ZCOOL KuHei', 'Arial Black', 'Arial', sans-serif; */
	font-weight: bold;
	letter-spacing: 2px;
	text-shadow: none;
	-webkit-text-fill-color: #1976d2;
	/* 蓝色文字 */
	background-clip: initial;
}

.user-info {
	color: #1976d2;
	/* 蓝色文字 */
	font-size: 1.1rem;
	font-weight: 500;
	letter-spacing: 1px;
	background: #e3f2fd;
	/* 浅蓝色背景 */
	padding: 6px 18px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
	/* 蓝色阴影 */
}

.content-body {
	flex: 1;
	padding: 32px 32px 24px 32px;
	overflow-y: auto;
	overflow-x: hidden;
	background: #f0f8ff;
	/* 浅蓝色背景 */
	min-height: 0;
}

.dashboard .el-row {
	margin-bottom: 20px;
}

.stat-card {
	text-align: center;
	padding: 28px 0 18px 0;
	border-radius: 18px;
	background: #fff;
	/* 白色背景 */
	color: #1976d2;
	/* 蓝色文字 */
	box-shadow: 0 2px 16px 0 rgba(25, 118, 210, 0.12);
	/* 蓝色阴影 */
	transition: box-shadow 0.2s;
	border: 1px solid #e3f2fd;
}

.stat-card:hover {
	box-shadow: 0 6px 24px 0 rgba(25, 118, 210, 0.18);
	/* 蓝色阴影 */
}

.stat-number {
	font-size: 2.2rem;
	font-weight: bold;
	color: #1976d2;
	/* 蓝色文字 */
	margin-bottom: 10px;
	text-shadow: none;
}

.stat-label {
	color: #42a5f5;
	/* 浅蓝色文字 */
	font-size: 1.1rem;
	letter-spacing: 1px;
}

.upload-demo {
	width: 100%;
}

.el-upload__tip {
	color: #42a5f5;
	font-size: 12px;
	margin-top: 10px;
}

/* 卡片和表格美化 */
.el-card {
	border-radius: 18px;
	box-shadow: 0 2px 16px 0 rgba(25, 118, 210, 0.10);
	/* 蓝色阴影 */
	border: none;
	background: #fff;
	/* 白色背景 */
}

.el-card__body {
	height: 100%;
	overflow: auto;
}

.el-table {
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	/* 白色背景 */
	box-shadow: 0 2px 12px 0 rgba(25, 118, 210, 0.08);
	/* 蓝色阴影 */
	font-size: 1.05rem;
}

.el-table th,
.el-table td {
	background: transparent;
}

.el-table__row:hover {
	background: #f3f8ff !important;
	/* 浅蓝色悬停背景 */
	transition: background 0.2s;
}

/* 表格列宽度优化 */
.el-table .el-table__cell {
	transition: all 0.3s ease;
}

/* 侧边栏收缩时优化列宽 */
.admin-container.sidebar-collapsed .el-table .el-table__cell {
	padding: 8px 12px;
}

/* 在较宽屏幕上进一步优化列宽 */
@media (min-width: 1400px) {
	.admin-container.sidebar-collapsed .el-table .el-table__cell {
		padding: 8px 16px;
	}
}

/* 在超宽屏幕上最大化列宽 */
@media (min-width: 1600px) {
	.el-table .el-table__cell {
		padding: 12px 20px;
	}
}

.el-button {
	border-radius: 10px;
	font-weight: 600;
	background: #2196f3;
	/* 蓝色按钮 */
	color: #fff;
	border: none;
	box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
	/* 蓝色阴影 */
	transition: background 0.2s, box-shadow 0.2s;
}

.el-button:hover {
	background: #1976d2;
	/* 深蓝色 */
	box-shadow: 0 4px 16px rgba(25, 118, 210, 0.18);
	/* 蓝色阴影 */
}

/* 确保表格不会超出容器 */
.users-section,
.media-section,
.upload-section {
	height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.users-section .el-table,
.media-section .el-table {
	height: calc(100% - 80px);
	flex: 1;
}

/* 表格容器样式 - 支持横向滚动 */
.table-container {
	width: 100% !important;
	overflow: hidden !important;
	border-radius: 14px;
	box-shadow: 0 2px 12px 0 rgba(25, 118, 210, 0.08);
	/* 蓝色阴影 */
	transition: all 0.3s ease;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.table-container .el-table {
	width: 100% !important;
	min-width: auto !important;
	transition: all 0.3s ease;
}

/* 表格在所有状态下都是100%宽度 */
.admin-container .table-container {
	overflow-x: hidden !important;
	width: 100% !important;
}

.admin-container .table-container .el-table {
	width: 100% !important;
	min-width: auto !important;
	max-width: none !important;
	flex: 1;
	overflow: auto;
}

/* 强制表格列自适应 */
.admin-container .table-container .el-table .el-table__body-wrapper {
	width: 100% !important;
}

.admin-container .table-container .el-table .el-table__header-wrapper {
	width: 100% !important;
}

/* 强制覆盖Element Plus表格样式 */
.admin-container .table-container .el-table {
	table-layout: auto !important;
}

.admin-container .table-container .el-table .el-table__body,
.admin-container .table-container .el-table .el-table__header {
	width: 100% !important;
}

.admin-container .table-container .el-table .el-table__cell {
	width: auto !important;
}

/* 表格滚动条样式 */
.admin-container .table-container .el-table::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.admin-container .table-container .el-table::-webkit-scrollbar-track {
	background: rgba(25, 118, 210, 0.1);
	border-radius: 4px;
}

.admin-container .table-container .el-table::-webkit-scrollbar-thumb {
	background: #90caf9;
	border-radius: 4px;
	transition: background 0.2s;
}

.admin-container .table-container .el-table::-webkit-scrollbar-thumb:hover {
	background: #42a5f5;
}

/* 头像样式优化 */
.admin-container .table-container .el-table img[alt="头像"] {
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}

.admin-container .table-container .el-table img[alt="头像"]:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

/* 积分明细对话框样式 */
.el-dialog__body {
	padding: 0 !important;
}

.point-detail-section {
	background: #f8f9fa;
	min-height: 600px;
}

/* 分页容器样式 */
.pagination-container {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px 0;
	background: #fff;
	border-radius: 8px;
	margin-top: 16px;
	box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
	flex-shrink: 0;
}

/* 分页组件样式优化 */
.pagination-container :deep(.el-pagination) {
	justify-content: center;
}

.pagination-container :deep(.el-pagination .el-pager) {
	background: transparent;
}

.pagination-container :deep(.el-pagination .btn-prev),
.pagination-container :deep(.el-pagination .btn-next) {
	background: #e3f2fd;
	border: 1px solid #bbdefb;
	color: #1976d2;
}

.pagination-container :deep(.el-pagination .btn-prev:hover),
.pagination-container :deep(.el-pagination .btn-next:hover) {
	background: #bbdefb;
	color: #1565c0;
}

.pagination-container :deep(.el-pagination .el-pager li) {
	background: #e3f2fd;
	border: 1px solid #bbdefb;
	color: #1976d2;
}

.pagination-container :deep(.el-pagination .el-pager li.is-active) {
	background: #1976d2;
	color: #fff;
	border-color: #1976d2;
}

.pagination-container :deep(.el-pagination .el-pager li:hover) {
	background: #bbdefb;
	color: #1565c0;
}

/* 自定义滚动条样式 */
.table-container::-webkit-scrollbar {
	height: 8px;
}

.table-container::-webkit-scrollbar-track {
	background: rgba(25, 118, 210, 0.1);
	/* 蓝色 */
	border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
	background: #90caf9;
	/* 浅蓝色滚动条 */
	border-radius: 4px;
	transition: background 0.2s;
}

.table-container::-webkit-scrollbar-thumb:hover {
	background: #42a5f5;
	/* 蓝色滚动条 */
}

/* 主内容区域滚动条样式 */
.main-content::-webkit-scrollbar {
	width: 8px;
}

.main-content::-webkit-scrollbar-track {
	background: rgba(25, 118, 210, 0.1);
	border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb {
	background: #90caf9;
	border-radius: 4px;
	transition: background 0.2s;
}

.main-content::-webkit-scrollbar-thumb:hover {
	background: #42a5f5;
}

/* 侧边栏滚动条样式 */
.sidebar::-webkit-scrollbar {
	width: 6px;
}

.sidebar::-webkit-scrollbar-track {
	background: rgba(25, 118, 210, 0.1);
	border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
	background: #90caf9;
	border-radius: 3px;
	transition: background 0.2s;
}

.sidebar::-webkit-scrollbar-thumb:hover {
	background: #42a5f5;
}

/* 响应式优化 */
@media (max-width: 1920px) {
	.admin-container {
		max-width: 100vw;
		left: 0;
		transform: none;
	}
}

@media (min-width: 1921px) {
	.admin-container {
		max-width: 1920px;
		left: 50%;
		transform: translateX(-50%);
	}
}

@media (max-width: 900px) {
	.admin-container {
		flex-direction: column;
	}

	.sidebar {
		width: 100vw;
		height: 70px;
		flex-direction: row;
		border-radius: 0 0 24px 24px;
		box-shadow: 0 2px 16px 0 rgba(25, 118, 210, 0.12);
		/* 蓝色阴影 */
	}

	.sidebar.collapsed {
		width: 100vw !important;
		height: 70px !important;
	}

	.sidebar-header,
	.sidebar-footer {
		display: none;
	}

	.sidebar-menu {
		flex-direction: row;
		display: flex;
		width: 100vw;
		padding: 0;
	}

	.main-content {
		height: calc(100vh - 70px);
		width: 100vw !important;
	}

	.admin-container.sidebar-collapsed .main-content {
		width: 100vw !important;
	}
	
	/* 移动端表格优化 */
	.table-container {
		overflow-x: hidden;
	}
	
	.table-container .el-table {
		width: 100% !important;
		min-width: auto !important;
	}
	
	/* 移动端分页优化 */
	.pagination-container {
		padding: 15px 0;
		margin-top: 12px;
	}
	
	.pagination-container :deep(.el-pagination) {
		font-size: 14px;
	}
}

/* 所有屏幕尺寸下表格都是100%宽度 */
@media (min-width: 901px) {
	.table-container {
		overflow-x: hidden;
	}
	
	.table-container .el-table {
		width: 100% !important;
		min-width: auto !important;
	}
}

/* 修改登录页面背景为蓝色 */
.login-container {
	background-color: #1e88e5 !important;
	/* 蓝色背景 */
}

.login-box {
	background: rgba(255, 255, 255, 0.95) !important;
	/* 白色半透明背景 */
}

.art-title {
	color: #1976d2 !important;
	/* 蓝色标题 */
}